package com.song.tools.log.operatelog.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作类型枚举
 *
 * @author song tools
 * @since 2024-07-03
 */
@AllArgsConstructor
@Getter
public enum ActionTypeEnum {

    DEFAULT(-1, ""),

    OTHER(0, "其他"),
    CREATE(1, "创建"),
    UPDATE(2, "更新"),
    DELETE(3, "删除"),
    QUERY(4, "查询"),
    IMPORT(5, "导入"),
    EXPORT(6, "导出"),

    // 登录相关
    LOGIN(10, "登录"),
    LOGOUT(11, "登出"),
    PASSWORD_RESET(12, "密码重置"),
    PASSWORD_CHANGE(13, "密码修改"),

    // 权限相关
    ROLE_CREATE(20, "角色创建"),
    ROLE_UPDATE(21, "角色更新"),
    ROLE_DELETE(22, "角色删除"),
    ROLE_QUERY(23, "角色查询"),
    ROLE_IMPORT(24,"角色导入"),
    // 切换角色
    ROLE_SWITCH(25, "切换角色"),

    ;

    private final int code;

    private final String desc;
}
